﻿package com.amcharts.axes
{
    import com.amcharts.geom.*;
    import flash.display.*;

    public class RectangularAxisGuideFillRenderer extends Object
    {
        private var _fill:Rect;

        public function RectangularAxisGuideFillRenderer(param1:AxisBase, param2:Number, param3:Number, param4:Guide)
        {
            var _loc_5:* = param1.orientation;
            var _loc_6:* = param1.fills;
            var _loc_7:Number = 0;
            var _loc_8:* = param4.fillAlpha;
            if (isNaN(param2))
            {
                param2 = 4;
                _loc_7 = 2;
                _loc_8 = 0;
            }
            var _loc_9:* = param4.fillColor;
            if (isNaN(_loc_9))
            {
                _loc_9 = 0;
            }
            if (isNaN(_loc_8))
            {
                _loc_8 = 0;
            }
            if (_loc_5 == "vertical")
            {
                _fill = new Rect(param1.width, param2, [_loc_9], [_loc_8]);
                _fill.y = param3 - _loc_7;
            }
            else
            {
                _fill = new Rect(param2, param1.height, [_loc_9], [_loc_8]);
                _fill.x = param3 - _loc_7;
            }
            _loc_6.addChild(_fill);
            return;
        }// end function

        public function get fill() : Rect
        {
            return _fill;
        }// end function

    }
}
